import http from "@/utils/http.js";

/**
 * 通过一级分类获取分类信息和商品信息
 * @param id 父分类id
 * @returns SecCategoryVO
 */
export function getCategoryByParentIdAPI (id) {
    return http.get('/category/getCategoryAndGoodsByParentId',{params:{id}});
}

/**
 * 通过二级分类获取分类信息和商品信息
 * @param id 二级分类id
 * @returns SecCategoryVO
 */
export function getCategoryBySecIdAPI (id) {
    return http.get('/category/getCategoryAndGoodsBySecId',{params:{id}});
}